@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Contrail+One&display=swap');

:root {
    --primary-bg: linear-gradient(-45deg, #6d6d6de1, #000000,#646464d5,#000000ef,#5a5a5ad5);
    --active-bg: linear-gradient(-45deg, #000000, #646464d5,#000000,#5a5a5ad5,#000000);
    --font-color: white;
}

#drawtext-container {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    font-family: 'Contrail One', cursive !important;
    font-weight: 300;
}

.text {
    position: absolute;
    background: var(--primary-bg);
    color: var(--font-color);
    margin-top: 0.5rem;
    padding: 0.45rem;
    border-radius: 0.15rem;
    border: 1.8px solid;
    animation:gradient 10s ease infinite,8s rotate linear infinite;
    border-image: linear-gradient(var(--angle), #000000d5,#333333d5,#181818d0,#6f00ff00,#fafafae1) 1;
}

@media (width: 3840px) and (height: 2160px) {
    #drawtext-container {
        display: none;
        width: 100%;
        height: 100%;
        overflow: hidden;
        padding: 0;
        margin: 0;
        font-family: 'Contrail One', cursive !important;
        font-weight: 300;
        font-size: 1.5vh;
    }
}

.text.pressed {
    background: var(--active-bg);
}

.top {
    left: 45vw;
    top: -100px;
}

.top.show {
    transition: 0.5s;
    top: 10px;
    opacity: 1;
}

.top.hide {
    transition: 0.5s;
    top: -100px;
    opacity: 0;
}

.right {
    top: 50%;
    right: -100px;
}

.right.show {
    transition: 0.5s;
    right: 10px;
    opacity: 1;
}

.right.hide {
    transition: 0.5s;
    right: -100px;
    opacity: 0;
}

.left {
    top: 50%;
    left: -100px;
}

.left.show {
    transition: 0.5s;
    left: 10px;
    opacity: 1;
}

.left.hide {
    transition: 0.5s;
    left: -100px;
    opacity: 0;
}

@keyframes rotate {
    to {
      --angle: 360deg;
      border-radius: .15rem;
    }
  }
  @property --angle {
      syntax: '<angle>';
      initial-value: 0deg;
      inherits: true;
  }
  
@keyframes gradient {
    0% {
        background-position: 0% 50%;
        border-radius: 7px;
    }
    50% {
        background-position: 100% 50%;
        border-radius: 7px;
    }
    100% {
        background-position: 0% 50%;
    }
    
}